<template>
    <div class="view">
        <bs-navbar class="bs_navbar" @activeMenu="activeMenu"></bs-navbar>
        <transition mode="out-in">
            <router-view class="center" />
        </transition>
    </div>
    
</template>
<script>
// const BsNavbar = () => import('../PublicComponents/BS_Navbar')
// 按需导入 路由懒加载
const OnlineInstrument = () => import('../OnlineInstrument/OnlineInstrument')
const TestPlan = () => import('../TestPlan/TestPlan')
const RunningTest = () => import('../RunningTest/RunningTest')
const Demo = () => import('../Demo/Demo')
const EditOrNewTestPlan = () => import('../EditOrNewTestPlan/EditOrNewTestPlan')
const TestPlanRunning = () => import('../TestPlanRunning/TestPlanRunning')
const TestRecordData = () => import('../TestRecordData/TestRecordData')
const TestRecordDatas = () => import('../TestRecordData/TestRecordDatas')
const EquipmentManagement = () => import('../EquipmentManagement/EquipmentManagement')
const AddEquipment = () => import('../AddEquipment/AddEquipment')
const AlarmLog = () => import('../AlarmLog/AlarmLog')
const TestProductTemplateConfiguration = () => import('../TestProductTemplateConfiguration/TestProductTemplateConfiguration')
const RolePermissions = () => import('../RolePermissions/RolePermissions')
const AddRole = () => import('../RolePermissions/AddRole')
const UserManagement = () => import('../UserManagement/UserManagement')
const ConfigWave = () => import('../ConfigWave/ConfigWave')
const StationManagement = () => import('../StationManagement/StationManagement')
const DeptManagement = () => import('../DeptManagement/DeptManagement')
const CheckRecord = () => import('../CheckRecord/CheckRecord')
const TemplateManagement = () => import('../TemplateManagement/TemplateManagement')
const TrialRecord = () => import('../TrialRecord/TrialRecord')
const ProductKind = () => import('../ProductKind/ProductUnitLib')
const ProductUnitLib = () => import('../ProductUnitLib/ProductUnitLib')
const TestGjb = () => import('../TestGjb/TestGjb')
const HomePage = () => import('../HomePage/HomePage')
const ShowAllParameters = () => import('../ShowAllParameters/ShowAllParameters')
const ShowAllParameterss = () => import('../ShowAllParameters/ShowAllParameterss')
const DeviceRunRecord = () => import('../DeviceRunRecord/DeviceRunRecord')
const TestSite = () => import('../TestSite/TestSite')
const EquipmentType = () => import('../EquipmentType/EquipmentType')
const AddEquipments = () => import('../AddEquipments/AddEquipment')
const EquipmentStatusDetection = () => import('../EquipmentStatusDetection/EquipmentStatusDetection')
const RecordAudit = () => import('../RecordAudit/RecordAudit')
const TestParamsDisplay = () => import('../TestParamsDisplay/TestParamsDisplay')
const PhotoAcquisition = () => import('../PhotoAcquisition/PhotoAcquisition')
const EditTestProdTemplate = () => import('../EditTestProdTemplate/EditTestProdTemplate')
const TypeGas = () => import('../TypeGas/TypeGas')
const InfoCollection = () => import('../InfoCollection/InfoCollection')
const ConfigWaveOld = () => import('../ConfigWaveOld/ConfigWaveOld')
import BsNavbar from '../PublicComponents/BS_Navbar';
// import OnlineInstrument from '../OnlineInstrument/OnlineInstrument';
// import TestPlan from '../TestPlan/TestPlan';
// import RunningTest from '../RunningTest/RunningTest';
// import Demo from '../Demo/Demo';
// import EditOrNewTestPlan from '../EditOrNewTestPlan/EditOrNewTestPlan';
// import TestPlanRunning from '../TestPlanRunning/TestPlanRunning';
// import TestRecordData from '../TestRecordData/TestRecordData';
// import TestRecordDatas from '../TestRecordData/TestRecordDatas';
// import EquipmentManagement from '../EquipmentManagement/EquipmentManagement';
// import AddEquipment from '../AddEquipment/AddEquipment';
// import AlarmLog from '../AlarmLog/AlarmLog';
// import TestProductTemplateConfiguration from '../TestProductTemplateConfiguration/TestProductTemplateConfiguration';
// import RolePermissions from '../RolePermissions/RolePermissions';
// import AddRole from '../RolePermissions/AddRole';
// import UserManagement from '../UserManagement/UserManagement';
// import ConfigWave from '../ConfigWave/ConfigWave';
// import StationManagement from '../StationManagement/StationManagement';
// import DeptManagement from '../DeptManagement/DeptManagement';
// import CheckRecord from '../CheckRecord/CheckRecord';
// import TemplateManagement from '../TemplateManagement/TemplateManagement';
// import TrialRecord from '../TrialRecord/TrialRecord';
// import ProductKind from '../ProductKind/ProductUnitLib'
// import ProductUnitLib from '../ProductUnitLib/ProductUnitLib'
// import TestGjb from '../TestGjb/TestGjb'
// import HomePage from  '../HomePage/HomePage'
// import ShowAllParameters from '../ShowAllParameters/ShowAllParameters'
// import ShowAllParameterss from '../ShowAllParameters/ShowAllParameterss'
// import DeviceRunRecord from '../DeviceRunRecord/DeviceRunRecord'
// import TestSite from '../TestSite/TestSite'
// import EquipmentType from '../EquipmentType/EquipmentType'
// import AddEquipments from '../AddEquipments/AddEquipment'
// import EquipmentStatusDetection from '../EquipmentStatusDetection/EquipmentStatusDetection'
// import RecordAudit from '../RecordAudit/RecordAudit';
// import TestParamsDisplay from '../TestParamsDisplay/TestParamsDisplay';
// import PhotoAcquisition from '../PhotoAcquisition/PhotoAcquisition'

export default {
  components: {
    BsNavbar
  },
  data () {
    return {
    
    };
  },
  methods: {
    activeMenu(data){
       this.$router.push({ path: data });
    }
  },
  children: [
    {
      path: 'onlineInstrument',
      name: 'onlineInstrument',
      component: OnlineInstrument,
      alias: '/onlineInstrument'
    },
    {
      path: 'testPlan',
      name: 'testPlan',
      component: TestPlan,
      alias: '/testPlan'
    },
    {
      path: 'runningTest',
      name: 'runningTest',
      component: RunningTest,
      alias: '/runningTest'
    },
    {
      path: 'demo',
      name: 'demo',
      component: Demo,
      alias: '/demo'
    },
    {
      path: 'testProductTemplateConfiguration',
      name: '试品模板配置',
      component: TestProductTemplateConfiguration,
      alias: '/testProductTemplateConfiguration'
    },
    {
      path: 'infoCollection',
      name: '试品信息',
      component: InfoCollection,
      alias: '/infoCollection'
    },
    {
      path: 'EditTestProdTemplate',
      name: '模板编辑',
      component: EditTestProdTemplate,
      alias: '/EditTestProdTemplate'
    },
    {
      path: 'editOrNewTestPlan',
      name: 'editOrNewTestPlan',
      component: EditOrNewTestPlan,
      alias: '/editOrNewTestPlan'
    },
    {
      path: 'testPlanRunning',
      name: 'testPlanRunning',
      component: TestPlanRunning,
      alias: '/testPlanRunning'
    },
    {
      path: 'testRecordData',
      name: 'testRecordData',
      component: TestRecordData,
      alias: '/testRecordData'
    },
    {
      path: 'testRecordDatas',
      name: 'testRecordDatas',
      component: TestRecordDatas,
      alias: '/testRecordDatas'
    },
    {
      path: 'equipmentManagement',
      name: 'equipmentManagement',
      component: EquipmentManagement,
      alias: '/equipmentManagement'
    },
    {
      path: 'addEquipment',
      name: 'addEquipment',
      component: AddEquipment,
      alias: '/addEquipment'
    },
    {
      path: 'alarmLog',
      name: 'alarmLog',
      component: AlarmLog,
      alias: '/alarmLog'
    },
    {
      path: 'rolePermissions',
      name: '角色权限',
      component: RolePermissions,
      alias: '/rolePermissions'
    },
    {
      path: 'addRole',
      name: '新增用户',
      component: AddRole,
      alias: '/addRole'
    },
    {
      path: 'userManagement',
      name: '用户管理',
      component: UserManagement,
      alias: '/userManagement'
    },
    {
      path: 'configWave',
      name: '调波百分比配置',
      component: ConfigWave,
      alias: '/configWave'
    },
    {
      path: 'ConfigWaveOld',
      name: '老练百分比配置',
      component: ConfigWaveOld,
      alias: '/ConfigWaveOld'
    },
    {
      path: 'stationManagement',
      name: '工位管理',
      component: StationManagement,
      alias: '/stationManagement'
    },
    {
      path: 'deptManagement',
      name: '部门管理',
      component: DeptManagement,
      alias: '/deptManagement'
    },
    {
      path: 'checkRecord',
      name: '点检记录',
      component: CheckRecord,
      alias: '/checkRecord'
    },
    {
      path: 'templateManagement',
      name: '模板管理',
      component: TemplateManagement,
      alias: '/templateManagement'
    },
    {
      path: 'trialRecord',
      name: '试验记录',
      component: TrialRecord,
      alias: '/trialRecord'
    }, 
    {
      path: 'ProductKind',
      name: '试品类型配置',
      component: ProductKind,
      alias: '/ProductKind'
    }, 
    {
      path: 'ProductUnitLib',
      name: '试品元件配置',
      component: ProductUnitLib,
      alias: '/ProductUnitLib'
    }, 
    {
      path: 'PhotoAcquisition',
      name: '试品采集配置',
      component: PhotoAcquisition,
      alias: '/PhotoAcquisition'
    }, 
    {
      path: 'TestGjb',
      name: '试验标准配置',
      component: TestGjb,
      alias: '/TestGjb'
    }, 
    {
      path: '',
      name: '首页',
      component: HomePage,
      alias: '/HomePage'
    }, 
    {
      path: 'ShowAllParameters',
      name: '展示所有参数',
      component: ShowAllParameters,
      alias: '/ShowAllParameters'
    }, 
    {
      path: 'ShowAllParameterss',
      name: '展示所有其他试验参数',
      component: ShowAllParameterss,
      alias: '/ShowAllParameterss'
    }, 
    {
      path: 'DeviceRunRecord',
      name: '设备运行记录',
      component: DeviceRunRecord,
      alias: '/DeviceRunRecord'
    }, 
    {
      path: 'TestSite',
      name: '试验部位配置',
      component: TestSite,
      alias: '/TestSite'
    }, 
    {
      path: 'EquipmentType',
      name: '设备类型配置',
      component: EquipmentType,
      alias: '/EquipmentType'
    }, 
    {
      path: 'AddEquipments',
      name: '新增设备类型',
      component: AddEquipments,
      alias: '/AddEquipments'
    }, 
    {
      path: 'EquipmentStatusDetection',
      name: '设备状态检测',
      component: EquipmentStatusDetection,
      alias: '/EquipmentStatusDetection'
    }, 
    {
      path: 'RecordAudit',
      name: '记录审核',
      component: RecordAudit,
      alias: '/RecordAudit'
    },
    {
      path: 'TestParamsDisplay',
      name: '运行测试参数展示',
      component: TestParamsDisplay,
      alias: '/TestParamsDisplay'
    },
    {
      path: 'TypeGas',
      name: '气体类型配置',
      component: TypeGas,
      alias: '/TypeGas'
    },
     
  ]
};
</script>
<style lang="scss">
@import "./Main.scss";
</style>
